package com.ruoyi.community.service;

import java.util.Date;
import java.util.List;

import com.ruoyi.community.domain.*;
import org.springframework.stereotype.Service;

/**
 * 物业缴费Service接口
 *
 * @author gsy
 * @date 2021-07-31
 */
@Service
public interface PayService
{
    /**
     * app端根据houseID查询待缴费信息
     *
     * @param houseId 房屋ID
     * @return 缴费项集合
     */

    public List<PayHisHouse> selectPayHisHouseByHouseId(Integer houseId);

    /**
     * app端根据costId查询缴费项信息
     *
     * @param costId 缴费项id
     * @return 具体缴费项
     */
    public PayCost selectPayCost(Integer costId);


    /**
     * app端修改待缴费为已交费
     *
     * @param
     * @return 结果
     */
    public int updatePayHisHouse(PayHisHouse record);

    /**
     * app端根据houseId查询已缴费记录
     *
     * @param houseId
     * @return 具体缴费项
     */
    public List<PayOrders> selectPayOrders(Integer houseId);

    /**
     * app端根据orderid查询缴费记录中具体项目
     *
     * @param orderId
     * @return 具体缴费内容
     */
    public List<PayHisHouse> selectPayHisHouse(Long orderId);


    /**
     * app端修改支付项

     */
    public int changePayHisHouse(PayHisHouse payHisHouse);


    /**
     * app端新增payorder
     */
    public int insertPayOrders(PayOrders payOrders);

    public PayHisHouse selectByPrimaryKey(PayHisHouseKey key);

    public List<PayHisHouse> selectByHisId(Integer hisId);

    public  PayHistory selectPayHistoryByPrimaryKey(Integer hisId);



}
